package com.partterns.interceptor;

import com.partterns.proxy.HelloWorld;
import com.partterns.proxy.HelloWorldImpl;

/**
 * 测试拦截器
 */
public class MyInterceptorTest {
    public static void main(String[] args){
        HelloWorld proxy= (HelloWorld) InterceptorJdkProxy.bind(new HelloWorldImpl(),"com.partterns.interceptor.MyInterceptor");
        proxy.sayHello();
    }
}
